package lib.base;

import javax.servlet.http.HttpServletRequest;

import lib.data.Customer;
import lib.data.Employee;

public abstract class EgoModule
{
	/** The request. */
	protected HttpServletRequest _request = null;
	protected Employee _curEmp = null;
	protected Customer _curCust = null;
	
	public EgoModule(HttpServletRequest request)
	{
		_request = request;
		_curEmp = (Employee) _request.getSession().getAttribute("currentEmployee");
		_curCust = (Customer) _request.getSession().getAttribute("currentCustomer");
	}
	
	// pure abstract
	abstract public void work() throws Exception;
}
